﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using PeekService;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;

namespace PeekWebApp.handler
{
    /// <summary>
    /// infodetail 的摘要说明
    /// </summary>
    public class infodetail : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "application/json";
            string bcode = context.Request["bcode"];                        
            List<SysFile> list = new ExtendService().GetFileByTourismCode(bcode);
            context.Response.Write(JsonConvert.SerializeObject(new{data = list }));
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}